home *** CD-ROM | disk | FTP | other *** search
/ Electronic Clipper 1996 November / Electronic Clipper 1996 November.iso / ideasrc / exercise.dir / 00016_Script_16 < prev    next >
Text File  |  1996-10-11  |  2KB  |  60 lines

  1. on startmovie
  2.   set the visible of sprite 48 to false
  3.   global slider, toolH, toolV, gallery
  4.   set slider = 0
  5.   set the locH of sprite 40 to toolH
  6.   set the locV of sprite 40 to toolV
  7.   set gallery = "slideshow"
  8. end
  9.  
  10. on keyDown 
  11.   if the key = 1 then set the soundLevel to (1)
  12.   if the key = 2 then set the soundLevel to (2)
  13.   if the key = 3 then set the soundLevel to (3)
  14.   if the key = 4 then set the soundLevel to (4)
  15.   if the key = 5 then set the soundLevel to (5)
  16.   if the key = 6 then set the soundLevel to (6)
  17.   if the key = 7 then set the soundLevel to (7)
  18. end keydown
  19.  
  20.  
  21. on stopmovie
  22.   global toolH, toolV
  23.   set toolH = the locH of sprite 40
  24.   set toolV = the locV of sprite 40
  25. end
  26.  
  27. on pressit button, swap  
  28.   puppetsound "clickdn"
  29.   repeat while the mousedown
  30.     set the castnum of sprite button to swap
  31.     updatestage
  32.   end repeat
  33.   puppetsprite button, false
  34.   puppetsound "clickup"
  35. end
  36.  
  37. on tools  
  38.   global slider
  39.   --go the frame
  40.   repeat with n = 41 to 48
  41.     puppetsprite n, true
  42.   end repeat
  43.   set the locV of sprite 41 to the locV of sprite 40 + 29
  44.   repeat with n = 42 to 46
  45.     set the locV of sprite n to the locV of sprite 40 + 36
  46.   end repeat
  47.   repeat with n = 47 to 48
  48.     set the locV of sprite n to the locV of sprite 40 + 13
  49.   end repeat
  50.   set the locH of sprite 41 to the locH of sprite 40 - 1
  51.   set the locH of sprite 42 to the locH of sprite 40 - 63
  52.   set the locH of sprite 43 to the locH of sprite 40 - 32
  53.   set the locH of sprite 44 to the locH of sprite 40 - 1
  54.   set the locH of sprite 45 to the locH of sprite 40 + 30
  55.   set the locH of sprite 46 to the locH of sprite 40 + 61
  56.   set the locH of sprite 47 to the locH of sprite 40 - 65
  57.   set the loch of sprite 48 to the locH of sprite 40 + 40 + slider
  58.   updatestage
  59. end tools
  60.